package com.pucong.gitee.database.backup.common.entity.redis.dto;

import com.pucong.gitee.database.backup.common.selfenum.RedisDataType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel("redis 修改key dto")
public class RedisValUpdateDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull
    @ApiModelProperty("库")
    private int index;

    @NotNull
    @ApiModelProperty("数据类型")
    private RedisDataType type;

    @ApiModelProperty("key")
    private String key;

    @ApiModelProperty("oldVal")
    private String oldVal;

    @ApiModelProperty("newVal")
    private String newVal;

    @ApiModelProperty("oldKey")
    private String oldKey;

    @ApiModelProperty("newKey")
    private String newKey;

    @ApiModelProperty("时长")
    private double score;

    @ApiModelProperty("list 时的序号")
    private int itemIndex;
}
